﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class appleader_projects_addmission : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            if (Request["projectid"] != null)
            {
                string weighttype = MasApp.BLL.Search.SearchWeighttype(int.Parse(Request["projectid"].ToString()));
                //评权专家链接
                if (weighttype == "直接赋权")
                {
                    weightLink.Text = "进入直接赋权<img src='../../images/arrowRight.png' />";
                    weightLink.NavigateUrl = "~/appleader/weight/direct.aspx?projectid=" + Request["projectid"].ToString();
                }
                else
                {
                    weightLink.Text = "评权专家选择<img src='../../images/arrowRight.png' />";
                    weightLink.NavigateUrl = "~/appleader/weight/sort.aspx?projectid=" + Request["projectid"].ToString();
                }
                //评级专家链接
                appraisalLink.NavigateUrl = "~/appleader/level/proList.aspx?projectid="+Request["projectid"].ToString();
                Session["currentprojectid"] = Request["projectid"].ToString();
            }
            else
            {
                MasApp.BLL.ResponseHelper.alert("非法链接", "editlist.aspx");
            }
        }
    }
}